package cn.itcast.dao;


import cn.itcast.pojo.OrderSetting;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.Date;

@RunWith(SpringRunner.class)
@SpringBootTest
@Slf4j
public class test {
    @Autowired
    private OrderSettingDao orderSettingDao;

    @Autowired
    private OrderDao orderDao;
    @Test
    public void testFind() {
//        Date date = new Date();
//        System.out.println(date);
//        OrderSetting orderSettingByDate = orderSettingDao.findOrderSettingByDate(date);
//        System.out.println(orderSettingByDate);
        orderDao.updateArrival("1386573105526345728",1);
    }
}
